package br.com.sgac.remote{
	import br.com.sgac.objetos.Exame;
	
	import mx.rpc.AsyncToken;
	import mx.rpc.Responder;

	public class remoteExame extends Remote{
		public function remoteExame()		{
			getInstance();
		}
		public function inserirExame(result:Function,exame:Exame,source:String):void{
			_remote.source = source;
			var async:AsyncToken = _remote.inserirExame(exame);
			async.addResponder(new Responder(result,defaultFaultHandler));
			
		}
		public function listarTodosExames(result:Function,source:String):void{
			_remote.source = source;
			var async:AsyncToken = _remote.listarTodosExames();
			async.addResponder(new Responder(result,defaultFaultHandler));
			
		}
		public function listarExames(result:Function,nomeExame:String,source:String):void{
			_remote.source = source;
			var async:AsyncToken = _remote.listarExames(nomeExame);
			async.addResponder(new Responder(result,defaultFaultHandler));
			
		}
	}
}